<?php
class Manhnv_News_IndexController extends Mage_Core_Controller_Front_Action
{
	public function indexAction()
	{
		$resource = Mage::getSingleton('core/resource');
		$read = $resource->getConnection('core_read');
		$newsTable = $resource->getTableName('news');
		$select = $read->select()->from($newsTable, array('news_id', 'title', 'filename','content', 'status'))->where('status', 1)
		->order('created_time DESC');
		$news = $read->fetchAll($select);
		Mage::register('list', $news);
		$this->loadLayout();
		$this->renderLayout();
	}
}